package com.example.demo.common;

import lombok.Getter;

/**
 * Created by IntelliJ IDEA.
 *
 * @author ouyangzhixiang
 * @date 2018/6/8
 */
@Getter
public enum ResponseCode {
    SUCCESS(0,"成功"),

    ERROR(1,"错误"),

    NEED_LOGIN(10,"未登录"),

    ILLEGAL_ARGUMENT(2,"参数错误");

    private final int code;

    private final String desc;

    ResponseCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
